import service from "../../utils/request"

//添加积分服务
export const addCoinService = (data: CoinService): Promise<Result<string>> => service.post('/coinservice', data)
//获取积分服务
export const getCoinServicePage = (page: number, remark: string): Promise<PageResult<ListPersonalChannel[]>> => service.get(`/coinservice/page?page=${page}&remark=${remark}`)
//编辑积分服务
export const editCoinService = (id: string, data: CoinService): Promise<Result<string>> => service.patch(`/coinservice/${id}`, data)
//删除积分服务
export const delCoinService = (id: string): Promise<Result<string>> => service.delete(`/coinservice/${id}`)
//批量删除积分服务
export const manyDelCoinService = (idList: string[]): Promise<Result<string>> => service.post('/coinservice/delMany', idList)
